<template>
  <view class="Navbar">
    <image
      class="img"
      @click="goback"
      src="/static/drawings/Frame.png"
      mode="scaleToFill"
    />
    <view class="tittle">{{ title }}</view>
  </view>
</template>

<script setup>
import { ref, defineProps, defineEmits } from 'vue';
const { title } = defineProps(['title']);
//返回
const goback = () => {
  uni.navigateBack({});
};
</script>

<style lang="scss" scoped>
.Navbar {
  width: 750rpx;
  height: 110rpx;
  display: flex;
  align-items: center;
  padding: 70rpx 0 2rpx 30rpx;
  background: #042e40;

  .img {
    width: 40rpx;
    height: 40rpx;
  }
  .tittle {
    width: 280rpx;
    height: 32rpx;
    font-size: 28rpx;
    margin-left: 178rpx;
    font-family: Arial, Arial;
    font-weight: bold;
    color: #ffffff;
    line-height: 33rpx;
    text-align: center;
  }
}
</style>
